package com.shopping.cart.domain

import grails.test.GrailsUnitTestCase
import com.shopping.cart.ItemCategory

class ItemCategoryTests extends GrailsUnitTestCase
{
    void testConstraints() {
        mockDomain ItemCategory
        ItemCategory category = new ItemCategory(id:'12' )

        assertEquals false, category.validate()
        assertEquals 1, category.errors.errorCount
        assertEquals 'nullable', category.errors.category
    }
}